package com.es.designmode.command;

/**
 * Command类，用来声明执行操作时的接口
 *
 * @author Will
 */
public abstract class Command {

    private Receiver receiver;

    public Receiver getReceiver() {
        return receiver;
    }

    public Command(Receiver receiver) {
        this.receiver = receiver;
    }

    /**
     * 执行方法
     */
    public abstract void execute();
}
